GBML manual / Camera

camera_unfollow

Stops auto-follow. The camera stays exactly where it was until camera_set/camera_follow is called again.

Syntax

camera_unfollow()

Returns

Nothing.

Description

Stops auto-follow. The camera stays exactly where it was until camera_set or camera_follow is called again - it does not recentre or drift anywhere on its own. Useful the instant a cutscene or a scripted camera pan needs to take over from whatever the camera was following.

Example

camera_unfollow();

Releases the camera from following, freezing it at its current position - typically the first line of a scripted camera move, before setting new positions by hand.

See also: camera_follow